/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2012/07/15
* File: RF.cpp
* Blog: http://www.cnblogs.com/zengqh/
**/

#include "RF.h"

Device* createDevice(DeviceType device_type,
					 const Dimension2Du& window_dimension)
{
	CreateDeviceParams create_params;
	create_params._device_type = device_type;
	create_params._window_dimension = window_dimension;

	Device* device = NULL;

#ifdef RF_PLATFORM_WINDOWS
	device = new DeviceWin32(create_params);
#endif

	return device;
}